﻿@using Study_MVC.ViewModels
@model EmployeeListViewModel

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>GetView</title>
</head>
<body>
    <div>
        <div style="text-align:right"> Hello, @Model.UserName 
        <a href="/Authentication/Logout">Logout</a></div>
        <hr />
        <a href="/Employee/AddNew">Add New</a>
        <table class="table">
            <tr>
                <th>Employee Name</th>
                <th>Salary</th>
                @foreach (EmployeeViewModel item in Model.Employees)
                {
                <tr>
                    <td>
                        @item.EmployeeName
                    </td>
                    <td style="background-color:@item.SalaryColor">@item.Salary</td>
                </tr>
                }
            <tr>
        </table>
    </div>

</body>
</html>
